/**
 * Copyright (c) 2024,  科泰集团教研团队
 * 版权所有，请勿侵权
 */
package entity;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author 科泰集团教研团队
 * @version 1.0.0
 * @packageName entity
 * @fileName Pet.java
 * @createTime 2024/9/5 17:29
 * @lastModify 2024/9/5 17:29
 */
public class Pet {
    private static final Logger LOGGER = LoggerFactory.getLogger(Pet.class);
    // 宠物
    public Pet() {
    }
    private String name; // 宠物名
    private int age; // 宠物年龄

    // 自我介绍
    public void introduce(){
        System.out.println("我是'" + this.name + "'，今年" + this.age + "岁");
    }
    // ...省略属性的getter和setter...
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge() {
        return age;
    }
    public void setAge(int age) {
        // LOGGER.info("Pet对象的setAge方法被调用！参数age = {}" , age);
        this.age = age;
    }
}
